<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property int $uid 
 * @property int $main_uid 
 * @property int $tag_id 标签id
 * @property int $keyword_switch 关键词开关：0=关闭 1=开启
 * @property array $keywords 关键词
 * @property int $member_count_switch 群成员开关：0=关闭 1=开启
 * @property int $member_count 群成员数量
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class ChRoomAutoTagConfig extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_room_auto_tag_config';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'main_uid', 'tag_id', 'keyword_switch', 'keywords', 'member_count_switch', 'member_count', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'main_uid' => 'integer', 'tag_id' => 'integer', 'keyword_switch' => 'integer', 'keywords' => 'array', 'member_count_switch' => 'integer', 'member_count' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
